<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/10/24
  Time: 16:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/include-wap.jsp" %>
    <title>退款订单列表</title>
    <link rel="stylesheet" href="/static/css/order/wap/refundOrderList.css">
    <script type="text/javascript" src="/static/js/order/wap/refundOrderList.js"></script>
</head>
<body>
<div class="head">
    <h3>
        <a href="javascript:history.back(-1)" class="return_01"><img src="/static/images/pay/return_01.png" alt=""></a>订单查询
    </h3>
</div>
<div class="content">
    <div class="content_nothing">
        <img src="/static/css/order/wap/order_01.png" alt="" class="nothing">
        <h3>查无记录</h3>
        <h4>请核对您的手机号是否正确</h4>
    </div>
    <div class="content_list">
        <ul>

            <c:forEach items="${orderList}" var="item" varStatus="index">
                <li>
                    <h3 class="title_01"><span class="order_n">${item.orderId}</span> <span class="time"><fmt:formatDate value="${item.createTime}" pattern="yyyy年MM月dd日"/></span></h3>

                    <h3 class="title_state"> ${item.status==1?"未支付":item.status==2?"去选号":item.status==12?"待发货":item.status==13?"查询物流":item.status==15?"已选号":item.status==16?"选号失败":item.status==6?"申请退款":item.status==8?"已退款":""}</h3>

                    <div class="watch">
                        <div class="watch_img">
                            <img src="${item.orderItemList[1].productEntity.picPath}" alt="" class="">
                        </div>
                        <div class="right_q">
                            <h3>
                                <span>${item.orderItemList[1].productEntity.productEntityName}</span>
                                <span class="price"><fmt:formatNumber value="${item.orderItemList[1].price/100}"
                                                                      type="currency"/></span>
                            </h3>
                            <h3>
                                <span class="name">${item.orderItemList[0].productEntity.productEntityName}</span>
                                <span class="price"><fmt:formatNumber value="${item.orderItemList[0].price/100}"
                                                                      type="currency"/></span>
                            </h3>
                        </div>
                    </div>


                    <h3 class="title_02 title_03"><span
                            class="span_01">${item.orderItemList[2].productEntity.productEntityName}</span><span
                            class="price_02"><fmt:formatNumber value="${item.orderItemList[2].price/100}"
                                                               type="currency"/></span></h3>
                    <h3 class="title_02"><span>总价</span><span class="price_02 price_03"><fmt:formatNumber
                            value="${item.orderPrice/100}" type="currency"/></span></h3>
                    <div class="state"  >
                            <%--<span data="${item.status}" ${item.status==2?"style=\"color: red;\"":item.status==12?"style=\"color: blue;\"":item.status==13?"style=\"color: orange;\"":"1111"}>
                                    ${item.status==1?"未支付":item.status==2?"去选号":item.status==12?"待发货":item.status==13?"查询物流":item.status==15?"已选号":item.status==16?"选号失败":""}
                            </span>--%>
                        <c:if test="${item.status==2 || item.status==15 || item.status==16|| item.status==12}">
                        <span><a href="/refund/refundApplyPage.html?orderId=${item.orderId}">申请退款</a></span>
                        </c:if>
                    </div>




                </li>
            </c:forEach>

        </ul>





    </div>
</div>






</body>
</html>
